import MyLayout from "../layout/MyLayout";
import { Navigate } from "react-router-dom";
import menus from './child'
import Login from "../components/Login";
import ProjectManagement from "../components/ProjectManagement";

const routes = [
    {
        path:'/',
        element:<Navigate to="/home"></Navigate>
    },
    {
        path:'/login',
        element:<Login></Login>
    },
    {
        path:'/home',
        element:<MyLayout></MyLayout>,
        children:[
            {
                path:'',
                index:true,
                element:<Navigate to="/home/comp/phone"></Navigate>
            },

    {
        path:'project',
        element:<ProjectManagement></ProjectManagement>
    },
            ...menus]
    }
];

export default routes;